package com.fang.algorithm.books;

/**
 * @author lingxiao.fang
 * @Desc 递归
 * @createTime 2024/10/9 14:48
 */
public class Test03_Recursion {
    public static void main(String[] args) {
        int time = 10;
        countdown(time);
    }

    private static void countdown(int time) {
        while (time > 0) {
            if (time % 10 == 0) {
                System.out.println(time);
            }
            time--;
            countdown(time);
        }
    }
}
